package cn.stylefeng.guns.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 装修货品表
 * </p>
 *
 * @author jiangge
 * @since 2020-11-02
 */
@Data
@TableName("bty_zx_huopin")
public class ZxHuopin implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "bty_zx_huopin_id", type = IdType.UUID)
    private String btyZxHuopinId;

    /**
     * 所属品牌
     */
    @TableField("pinpai")
    private Long pinpai;

    /**
     * 编码
     */
    @TableField("code")
    private String code;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 助记码
     */
    @TableField("zhujima")
    private String zhujima;

    /**
     * 所属科目
     */
    @TableField("bty_zx_kemu_id")
    private Long btyZxKemuId;

    /**
     * 所属科目名称
     */
    @TableField("bty_zx_kemu_id_view")
    private String btyZxKemuIdView;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 状态显示
     */
    @TableField("status_view")
    private String statusView;

    /**
     * 删除标记
     */
    @TableField("del_flag")
    private Integer delFlag;

    /**
     * 创建人
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 创建人姓名
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 更新人姓名
     */
    @TableField("update_user_name")
    private String updateUserName;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 所属组织
     */
    @TableField("company")
    private String company;

    /**
     * 所属组织显示
     */
    @TableField("company_view")
    private String companyView;

    /**
     * 上级单据
     */
    @TableField("src_type")
    private String srcType;

    /**
     * 上级单据值
     */
    @TableField("src_value")
    private String srcValue;


    //by zwf 20210116-----------------------------------
    /**
     * 供货商
     */
    @TableField("ghs")
    private String ghs;
    /**
     * 规格
     */
    @TableField("guige")
    private String guige;
    /**
     * 单位
     */
    @TableField("danwei")
    private String danwei;
    /**
     * 单价单价
     */
    @TableField("danjia")
    private String danjia;

    @TableField("zx_huopin_fenlei_id")
    private Long zxHuopinFenleiId;

    @TableField("ghsIds")
    private String ghsIds;

    @TableField("ghsNames")
    private String ghsNames;

    @TableField("is_jgc")
    private String isJgc;

    @TableField(exist = false)
    private String pName;

    @TableField("hp_type")
    private Integer hpType;




    @Override
    public String toString() {
        return "ZxHuopin{" +
        "btyZxHuopinId=" + btyZxHuopinId +
        ", code=" + code +
        ", name=" + name +
        ", zhujima=" + zhujima +
        ", btyZxKemuId=" + btyZxKemuId +
        ", btyZxKemuIdView=" + btyZxKemuIdView +
        ", status=" + status +
        ", statusView=" + statusView +
        ", delFlag=" + delFlag +
        ", createUser=" + createUser +
        ", createUserName=" + createUserName +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateUserName=" + updateUserName +
        ", updateTime=" + updateTime +
        ", company=" + company +
        ", companyView=" + companyView +
        ", srcType=" + srcType +
        ", srcValue=" + srcValue +
        ", isJgc=" + isJgc +
        "}";
    }
}
